package org.example.springsecuritydemo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * <p>
 * TODO
 * </p>
 *
 * @author czq
 * @since 2025-07-01
 */

@Controller
@RequestMapping("/view")
public class ViewController {
    // 成功页面
    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    // 成功页面
    @RequestMapping("/success")
    public String success() {
        return "success";
    }

    // 失败页面
    @RequestMapping("/fail")
    public String fail() {
        return "fail";
    }
}
